package com.ymttest.database.mapping.thirdpartysync;

import com.ymttest.database.model.thirdpartysync.syncproductsalestatus;
import com.ymttest.database.model.thirdpartysync.syncproductsalestatusExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface syncproductsalestatusMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @SelectProvider(type=syncproductsalestatusSqlProvider.class, method="countByExample")
    int countByExample(syncproductsalestatusExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @DeleteProvider(type=syncproductsalestatusSqlProvider.class, method="deleteByExample")
    int deleteByExample(syncproductsalestatusExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @Delete({
        "delete from syncproductsalestatus",
        "where Id = #{id,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @Insert({
        "insert into syncproductsalestatus (Id, ProductId, ",
        "SaleStatus)",
        "values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=VARCHAR}, ",
        "#{saleStatus,jdbcType=INTEGER})"
    })
    int insert(syncproductsalestatus record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @InsertProvider(type=syncproductsalestatusSqlProvider.class, method="insertSelective")
    int insertSelective(syncproductsalestatus record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @SelectProvider(type=syncproductsalestatusSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="ProductId", property="productId", jdbcType=JdbcType.VARCHAR),
        @Result(column="SaleStatus", property="saleStatus", jdbcType=JdbcType.INTEGER)
    })
    List<syncproductsalestatus> selectByExample(syncproductsalestatusExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @Select({
        "select",
        "Id, ProductId, SaleStatus",
        "from syncproductsalestatus",
        "where Id = #{id,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="ProductId", property="productId", jdbcType=JdbcType.VARCHAR),
        @Result(column="SaleStatus", property="saleStatus", jdbcType=JdbcType.INTEGER)
    })
    syncproductsalestatus selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @UpdateProvider(type=syncproductsalestatusSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") syncproductsalestatus record, @Param("example") syncproductsalestatusExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @UpdateProvider(type=syncproductsalestatusSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") syncproductsalestatus record, @Param("example") syncproductsalestatusExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @UpdateProvider(type=syncproductsalestatusSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(syncproductsalestatus record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table syncproductsalestatus
     *
     * @mbggenerated Mon Nov 04 17:07:06 CST 2019
     */
    @Update({
        "update syncproductsalestatus",
        "set ProductId = #{productId,jdbcType=VARCHAR},",
          "SaleStatus = #{saleStatus,jdbcType=INTEGER}",
        "where Id = #{id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(syncproductsalestatus record);
}